package com.hq.common.dao;

import com.hq.common.entity.Role;
import com.hq.common.entity.User;
import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
     List<Role> getRolesById(User user);
}